package com.example.vo.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author LeXin Huang
 * @date 2021年03月29日 21:28
 */
@ApiModel("信息发布者")
@Data
@NoArgsConstructor
@ToString
@TableName("user")
public class Publisher {
    @ApiModelProperty("用户id")
    @TableId(value = "id", type = IdType.AUTO)
    private
    Integer userId;

    @ApiModelProperty("用户头像路径")
    @TableField(value = "user_portrait_path")
    private
    String userPortraitPath;

    @ApiModelProperty("用户名称")
    @TableField(value = "user_username")
    private
    String username;

}
